package com.foxwho.springbootunittesting.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class IndexController {
    @GetMapping("/")
    public String index() {
        return "index";
    }

    @GetMapping("/hello/{name}")
    public String hello(@PathVariable("name") String name) {
        return name;
    }

    @GetMapping("/demo")
    public String demo() {
        return "demo";
    }
}
